import request from '@/utils/request'
const moduleApi = '/goods'

/**
 * 套餐标签
 * @param {Object} params
 * @returns
 */
export function getTagComboList(params) {
  return request({
    url: moduleApi + '/tagCombo',
    method: 'get',
    params
  })
}

/**
 * 新增套餐标签
 * @param {Object} data
 * @returns
 */
export function addTagCombo(data) {
  return request({
    url: moduleApi + '/tagCombo',
    headers: { repeatSubmit: false },
    method: 'post',
    data
  })
}

/**
 * 修改套餐标签
 * @param {Object} data
 * @returns
 */
export function updateTagCombo(data) {
  return request({
    url: moduleApi + '/tagCombo',
    headers: { repeatSubmit: false },
    method: 'put',
    params: data
  })
}

/**
 * 套餐标签详情
 * @param {String} id
 * @returns
 */
export function getTagComboDetail(id) {
  return request({
    url: moduleApi + `/tagCombo/${id}`,
    method: 'get'
  })
}

/**
 * 套餐标签 禁/启用
 * @param {Object} data
 * @returns
 */
export function disabletagCombo(data) {
  return request({
    url: moduleApi + `/tagCombo/dis`,
    method: 'put',
    params: data
  })
}
